ed1292
@@ -49,6 +49,9 @@
public class DefaultRedirectResolver implements RedirectResolver {
 	public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception {
 		
 		Set<String> authorizedGrantTypes = client.getAuthorizedGrantTypes();
+		if (authorizedGrantTypes.isEmpty()) {
+			throw new InvalidGrantException("A client must have at least one authorized grant type.");			
+		}
 		if (!containsRedirectGrantType(authorizedGrantTypes)) {
 			throw new InvalidGrantException("A redirect_uri can only be used by implicit or authorization_code grant types.");			
 		}
